package com.runa.rccprotocol.dto.equdata;

import java.io.Serializable;

/**
 * @author zhuj
 */
public abstract class EquData implements Serializable {

    private int indexNo;

    private String serial;

    private EquDataType type;

    private String faults;

    private String rssiSnr;

    private boolean success = true;

    public int getIndexNo() {
        return indexNo;
    }

    public void setIndexNo(int indexNo) {
        this.indexNo = indexNo;
    }

    public void setType(EquDataType type) {
        this.type = type;
    }

    public EquDataType equDataType() {
        return type;
    }

    public String getFaults() {
        return faults;
    }

    public void setFaults(String faults) {
        this.faults = faults;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getSerial() {
        return serial;
    }

    public void setSerial(String serial) {
        this.serial = serial;
    }

    public String getRssiSnr() {
        return rssiSnr;
    }

    public void setRssiSnr(String rssiSnr) {
        this.rssiSnr = rssiSnr;
    }

    public enum EquDataType {
        NONE,
        NET_EQU,
        METER,
        VALVE,
        PUBLIC_UNIT,
        TEMPERATURE_PANEL
    }
}
